export interface BatchConfig {
  className: string;
  displayAddButton: boolean;
  isOpen:boolean;
  tableData: Record<string, any>[]; // 确保是对象数组
  addToSubmit: Record<string, any>;
}

export interface ConditionConf {
  attr: string,
  condition: "LIKE"|"EQ",
  value: any
}

export interface GTableConfig {
  className: string;
  isTree: boolean
  queryData?: ConditionConf[];
  actionApiGet:boolean;
  customType?: 'replace'|'add'
  customTopActions?:ActionProp[],
  customRightActions?:ActionProp[]
}

export interface ActionProp {
  icon: string;
  name: string;
  actionType: "top"|"right"
  dataValidation?: boolean;
  key: string;
  disabled?: boolean;
  children?: ActionProp[];
  handler?: (rowData: any) => void;
}

